

 <div class="<?php echo ($this->session->flashdata('error_class') ? 'errorMsg' : 'successfull') ?>" style="display:<?php echo ($this->session->flashdata('userMesg') ? 'block' : 'none') ?> ">
                <?php echo $this->session->flashdata('userMesg'); ?>  
            </div>

    <div class="headingBox">
        <div class="FloatLeft"><img alt="" src="<?php echo imageUrl(); ?>red_leftRound.jpg" height="24" width="5"></div>
        <div style="width:992px;" class="red_midRound"><?php echo $page_heading; ?></div>
        <div class="FloatLeft"><img alt="" src="<?php echo imageUrl(); ?>red_rightRound.jpg" height="24" width="5"></div>
    </div>
        <div>
        <?php 
			$id = (isset($id)) ? intval($id) : 0;
		?>
        <form method="post" action="<?php echo base_url().$this->uri->segment(1).'/'.$this->uri->segment(2); ?>/" >
            <input name="sbmt" id="sbmt" value="1" type="hidden">
            <table class="subContentTable" cellpadding="2" cellspacing="5" width="100%">
                <tbody>
                <tr>
                    <td width="20%"><strong>Skill:</strong></td>
                    <td width="35%">
                         <?php  
 							$skillset = set_value('skillset', isset($skillset) ? $skillset : '' );
							echo create_select("skillset", $vdn_skills, $skillset, array('value'=>'skillset', 'label'=>'skillset') );
							echo form_error('skillset', '<div class="errorMsg_1" style="">', '</div>');
						 ?>
                    </td>
                    <td width="20%"></td>
                    <td width="35%">
                    </td>
                </tr>
              <tr>
                    <td width="20%"><strong>Off Hours:</strong></td>
                    <td width="35%">
                    	<input name="off_hours" value="<?php echo set_value('off_hours', isset($off_hours) ? $off_hours : '' ); ?>" size="30" type="text">
                        <br><label class="lb_hint"> format:(hh:mm-hh:mm) i.e. 23:00-05:30 </label>
                        <?php echo form_error('off_hours', '<div class="errorMsg_1" style="">', '</div>'); ?>
                    </td>
                    
                    <td width="20%"><strong>Weekend Off Hours:</strong></td>
                    <td width="35%">
                         <input name="weekend_off_hours" value="<?php echo set_value('weekend_off_hours', isset($weekend_off_hours) ? $weekend_off_hours : '' ); ?>" size="30" type="text">
                         <br><label class="lb_hint"> format:(hh:mm-hh:mm) i.e. 23:00-05:30 </label>
                        <?php echo form_error('weekend_off_hours', '<div class="errorMsg_1" style="">', '</div>'); ?>
                    </td>
                   
                    
                </tr>
                
                 <tr>
                     <td width="20%"><strong>Business Off Hour File Name:</strong></td>
                    <td width="35%"> 
                    	<input name="business_hours_playback" value="<?php echo set_value('business_hours_playback', isset($business_hours_playback) ? $business_hours_playback : '' ); ?>" size="30" type="text">
                        <br><label class="lb_hint"> File name without extension </label>
						<?php echo form_error('business_hours_playback', '<div class="errorMsg_1" style="">', '</div>'); ?>
                    </td>
                    
                     
                    <td width="20%"><strong>Off Hour File Name:</strong></td>
                    <td width="35%"> 
                    	<input name="off_hours_playback" value="<?php echo set_value('off_hours_playback', isset($off_hours_playback) ? $off_hours_playback : '' ); ?>" size="30" type="text">
                        <br><label class="lb_hint"> File name without extension </label>
						<?php echo form_error('off_hours_playback', '<div class="errorMsg_1" style="">', '</div>'); ?>
                    </td>
                    
                 </tr>
                
                  <tr bgcolor="#fff1d5">
                    <td colspan="4" align="left">
                        <input value="" class="backBtn" onclick="location.href='<?php echo base_url().$this->uri->segment(1); ?>';" type="button">
                        <input value="" class="submitBtn" type="submit">
                    </td>
                </tr>
                 
             </tbody>
              </table>
            
            
             
                 
            
            
        </form> 
    </div>
 
  
<script>
							
							function validate()
							{
								return true;
								error_msg = '';
								
								obj = document.getElementsByName('skills[]');
								obj  = $('.skill_hidden');
								if( obj.length == 0 ) {
									error_msg += '<div class="errorMsg_1" align="center">Please select atleast one skill</div>';
								}
								else 
								{
									primary_skill_flag = false;
									primary_skill = document.getElementsByName('primary_skill[]');
									for( i=0; i< primary_skill.length; i++ ) {
										if( primary_skill[i].checked ) {
											primary_skill_flag = true;
										}	
									}
									
									if( ! primary_skill_flag ) {
										error_msg += '<div class="errorMsg_1" align="center">Please select primary skill</div>';
									}
								}
								
								if( error_msg == '' ) {
									$("#error_msg_div").html('');
									$("#error_msg_div").hide();	
									return true;
								} else {
									$("#error_msg_div").html(error_msg);
									$("#error_msg_div").show();	
									return false;
								}
								
								
								/*alert(obj[0].value);
								if( ! document.getElementsByName('skills[]') ) {
									alert( 'fine');	
								}*/

								return false;								
							}

							
						</script>  